ScriptInputDialog

@Composable
fun ScriptInputDialog(initialScript: String = "", onDismissRequest: () -> Unit = {}, onConfirmation: (String) -> Unit = { _ -> })

This function displays a dialog to input a script.

Parameters

initialScript

The initial script to display in the dialog.

onDismissRequest

The action to be performed when the dialog is dismissed.

onConfirmation

The action to be performed when the dialog is confirmed.

Example usage:

ScriptInputDialog(
initialScript = "console.log('Hello, World!')",
onDismissRequest = { /* action to perform on dialog dismiss */},
onConfirmation = { script -> /* action to perform on dialog confirmation */}
)